package com.example.demo1.controller;

import com.example.demo1.entity.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zt
 * @Date: 2021/5/26 09:51
 * @Description:
 */
@RestController
public class HelloController {

    @Autowired
    Car car;

    @RequestMapping("/testConfigurationProperties")
    public String test1() {
        return car.toString();
    }

    @RequestMapping("/hello")
    public String handler01() {
        return "hello world";
    }


}
